<template>
	<view>
		<u-navbar :is-fixed="true" title="入住人信息" :border-bottom='false' back-icon-size='48'></u-navbar>
		<view class="headBtn">
			<view class="headBtn-item" @click="navTo('./add')">
				<u-icon name="man-add" color="#3587F7" size="32"></u-icon><text style="margin-left: 8rpx;">新增入住人</text>
			</view>
			<view class="headBtn-item" @click="navTo('./books')">
				<u-icon name="order" color="#3587F7" size="32"></u-icon><text style="margin-left: 8rpx;">从通讯录导入</text>
			</view>
		</view>
		<view class="linkman">
			<view class="linkman-li">
				<u-checkbox v-model="checked" shape="circle" @change="changeFn"></u-checkbox>
				<view class="linkman-info">
					<view class="name">
						小桌子
					</view>
					<view class="num">
						手机号 135 2569 2356
					</view>
				</view>
				<view class="edit" @click="navTo('./add')">
					<u-icon name="edit-pen" color="#3587F7" size="36"></u-icon>
				</view>
			</view>
			<view class="linkman-li">
				<u-checkbox v-model="checked" shape="circle" @change="changeFn"></u-checkbox>
				<view class="linkman-info">
					<view class="name">
						小桌子
					</view>
					<view class="num">
						手机号 135 2569 2356
					</view>
				</view>
				<view class="edit">
					<u-icon name="edit-pen" color="#3587F7" size="36"></u-icon>
				</view>
			</view>
		</view>
		<!-- <view class="noCont">
			<u-empty text="暂无联系人" mode="list"></u-empty>
		</view> -->
	</view>
</template>

<script>
	export default {
		data(){
			return {
				checked:false,
			}
		},
		methods:{
			navTo(url){
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.headBtn {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 24rpx 28rpx;
	
		.headBtn-item {
			width: 336rpx;
			height: 76rpx;
			background: #FFFFFF;
			border-radius: 8rpx;
			text-align: center;
			font-size: 28rpx;
			font-family: Segoe UI;
			font-weight: 400;
			line-height: 76rpx;
			color: #3587F7;
		}
	}
	
	.linkman {
		width: 100%;
		height: auto;
		background: #FFFFFF;
		padding: 0 28rpx;
	
		.linkman-li {
			border-bottom: 2rpx solid #F2F2F2;
			width: 100%;
			height: 120rpx;
			display: flex;
			align-items: center;
	
			.linkman-info {
				.name {
					font-size: 32rpx;
					font-family: Segoe UI;
					font-weight: 400;
					color: #333333;
				}
	
				.num {
					font-size: 28rpx;
					font-family: Segoe UI;
					font-weight: 400;
					color: #999999;
				}
			}
	
			.edit {
				margin-left: auto;
			}
		}
	}
</style>
